package com.vcredit.creditcat.service;

import com.vcredit.creditcat.model.PersonInfo;
import com.vcredit.creditcat.persistence.base.PersonInfoMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 **/
@Service
public class PersonInfoService {

  @Autowired
  private PersonInfoMapper mapper;

  public void insert(PersonInfo obj) {
    mapper.insert(obj);
  }

  public void update(PersonInfo obj) {
    mapper.update(obj);
  }

  public List<PersonInfo> findAll() {
    return mapper.findAll();
  }

  public List<PersonInfo> find(PersonInfo obj) {
    return mapper.find(obj);
  }

  public List<String> findMobileByPage(int start, int limit) {
    return mapper.findMobileByPage(start, limit);
  }

  public Long querytotal() {
    return mapper.querytotal();
  }
}